import QtQuick 1.1
import com.nokia.meego 1.0

Page {
    tools: commonTools

    Rectangle {
        id: title
        color: "steelblue"
        width: parent.width
        height: 50
        anchors {
            horizontalCenter: parent.horizontalCenter
            top: parent.top
        }

        Text {
            id: headerView
            anchors.fill: parent
            height: 50
            text: "QtDialog"
            font {
                family: "Arial"
                pixelSize: 27
                wordSpacing: 2
                bold: true
            }
            verticalAlignment: Text.AlignVCenter
            horizontalAlignment: Text.AlignHCenter
        }
    }

    Text {
        id: label
        text: qsTr("QtDialog version 0.1<br>(c) sashz &lt;sashz@pdaXrom.org&gt;, 2011")
        font {
            family: "Arial"
            pixelSize: 27
            wordSpacing: 2
        }
        smooth: true
        anchors.centerIn: parent
        verticalAlignment: Text.AlignVCenter
        horizontalAlignment: Text.AlignHCenter
        wrapMode: Text.WordWrap
        textFormat: Text.RichText
        visible: true
        width: parent.width
    }

    Button{
        anchors {
            horizontalCenter: parent.horizontalCenter
            top: label.bottom
            topMargin: 10
        }
        text: qsTr("Close")
        onClicked: Qt.quit()
    }
}
